﻿using System;
using System.Text;
using TI_BLE_HCI_ClientLib.BaseEntities;
using TI_BLE_HCI_ClientLib.GenericHCIEntities;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;

namespace TI_BLE_HCI_ClientLib.HCICommands
{
    public class HCICommand_GATT_Add_Service : HCIVendorSpecificCommand
    {
        private const byte CMD = 0xFC;

        public enum UUIDEnum
        {
            PRIMARY_SERVICE = 0x2800,
            SECONDARY_SERVICE = 0x2801
        }

        public HCICommand_GATT_Add_Service(UUIDEnum uuid, ushort numAttrs)
            : base(HCIVendorSpecificCommandCSG.ATT,CMD)
        {
            var pars = new BaseEntityParameter[2];

            pars[0] = new WordParameter((ushort)uuid);
            pars[1] = new WordParameter(numAttrs);
            
            base.addParameters(pars);
        }

    }
}
